<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
  <body bgcolor="lightpink">
	<center>
		<h1>JLC Student Search</h1>
		<form:form action="search.jlc" method="post" commandName="student">
			<table>
				<tr bgcolor="lightyellow">
					<td align="center">
						<form:errors path="error" cssStyle="color:red:font-weight:bolder" />
					</td>
				</tr>
				<tr>
					<td align="center">Enter Sid</td>
					<td><form:input path="sid" cssStyle="font-size:25" /></td>
				</tr>
				<tr>
					<td><input type="submit" value="Show" style="font-size:25" /></td>
				</tr>
			</table>
		</form:form>
		<c:if test="${STUD ne null}">
			<table bgcolor="lightyellow" align="center" width="209" height="108">
				<tr>
					<td>Student Id</td>
					<td>${STUD.sid}</td>
				</tr>
				<tr>
					<td>Student Name</td>
					<td>${STUD.sname}</td>
				</tr>
				<tr>
					<td>Student Email</td>
					<td>${STUD.email}</td>
				</tr>
				<tr>
					<td>Student Phone</td>
					<td>${STUD.phone}</td>
				</tr>
			</table>
		</c:if>
	</center>
  </body>
</html>
